<!DOCTYPE html>
<html>
  <head>
    <title>Hello World!</title>
  </head>
  <body>
    <h1>Hello World!</h1>
    We are using node.js 9999
    <script>
    document.write(process.version)
    console.log(123)

    var os = require('os');
    var pty = require('node-pty');

    var shell = os.platform() === 'win32' ? 'powershell.exe' : 'bash';
    console.log(456)
    var ptyProcess = pty.spawn(shell, [], {
      name: 'xterm-color',
      cols: 80,
      rows: 30,
      cwd: process.env.HOME,
      env: process.env
    });

    ptyProcess.onData(function(data) {
      process.stdout.write(data);
    });

    ptyProcess.write('ls\r');
    ptyProcess.resize(100, 40);
    ptyProcess.write('ls\r');
    </script>.
    <script scr=index.js></script>
  </body>
</html>